package cn.kgc.service.document;

import cn.kgc.pojo.Document;
import com.github.pagehelper.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface gth_documentServer {
    Page<Document> selall(@Param("title")String title, @Param("type")Integer type, @Param("createDate") String createDate, @Param("id")Integer id, @Param("u_id") Integer u_id);

    List<Document> selbyid(@Param("id")Integer id,@Param("title") String title,@Param("u_id")Integer u_id);

    Page<Document> selrecall(@Param("u_id")Integer u_id);

    int coupdate(@Param("id") Integer id,@Param("title")String title);

    Document lookbyid(@Param("id")Integer id,@Param("u_id")Integer u_id);

    int reupdate (@Param("id") Integer id);

    int cateupdate(@Param("id") Integer id);

    int redel(@Param("id")Integer id);

    int addfile(@Param("title")String title,@Param("dp_id")Integer dp_id,@Param("path")String path,@Param("parentId")Integer parentId,@Param("u_id")Integer u_id);


    Boolean repeatName (@Param("title")String title);

    //文件上传
    int save(Document document);

    Document lookall (@Param("id")Integer id,@Param("u_id")Integer u_id);

    //echar
    List<Document> echar(Integer u_id);

}
